package com.example.skyline.mapper;

import com.example.skyline.entity.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AddressMapper{

//    查询全部
    List<Address>selectAll(
            @Param("id") Integer id,
            @Param("deviceId") Integer deviceId);


    List<Address>selectAll();


//    添加
    void insert(Address address);

    void insert(List<Address>selectAll);

//    删除
    void delete(Integer id);


//    修改
    void update(Address address);



}
